//
//  TingModel.m
//  Time
//
//  Created by dllo on 16/7/23.
//  Copyright © 2016年 司昌宝. All rights reserved.
//

#import "TingModel.h"

@implementation TingModel

-(void)dealloc{
    [_title release];
    [_imgUrl release];
    [_musicUrl release];
    [_webview_url release];
    [_text release];
    [_isLike release];
    [_comments release];
    [_likes release];
    [_plays release];
    [_addtime release];
    [_scbUserinfo release];
    [_scbAuthorinfo release];
    [_scbShareinfo release];
    [super dealloc];
}

-(void)setValue:(id)value forUndefinedKey:(NSString *)key{
    if ([key isEqualToString:@"userinfo"]) {
        self.scbUserinfo = [[SCBUserinfo alloc] init];
        [self.scbUserinfo setValuesForKeysWithDictionary:value];
    }
    if ([key isEqualToString:@"authorinfo"]) {
        self.scbAuthorinfo = [[SCBUserinfo alloc] init];
        [self.scbAuthorinfo setValuesForKeysWithDictionary:value];
    }
    if ([key isEqualToString:@"shareinfo"]) {
        self.scbShareinfo = [[SCBShareinfo alloc] init];
        [self.scbShareinfo setValuesForKeysWithDictionary:value];
    }
    if ([key isEqualToString:@"collInfo"]) {
        self.scbCollInfo = [[SCBTingCollinfo alloc] init];
        [self.scbCollInfo setValuesForKeysWithDictionary:value];
    }
    
    
}


@end
